namespace Xmef.Library
{
    using System;
    using Xmef.Interfaces;

    [Serializable]
    public class PluginIdentity : IPluginIdentity
    {
        private int _id;
        private static int _number;

        public PluginIdentity()
        {
            this._id = ++_number;
        }

        protected PluginIdentity(IPluginIdentity plugin)
        {
            this._id = plugin.Id;
        }

        public int Id
        {
            get
            {
                return this._id;
            }
        }
    }
}

